package com.cfpamf.ms.insur.pay.pojo.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by zhengjing  on 2019-09-25 10:04:14
 */
@ApiModel("支付流水")
@Table(name = "pay_order_trx")
@Data
public class PayOrderTrxPO extends BasePO {

    @ApiModelProperty(value = "版本号-乐观锁")
    private Integer version;

    @ApiModelProperty(value = "当前流水号")
    private String payTrxNo;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "支付类型，WX ALIPAY")
    private String payType;

    @ApiModelProperty(value = "APP-app支付 TAS-公众号支付 QRCODE-二维码支付 H5-h5支付")
    private String payMethod;

    @ApiModelProperty(value = "微信、支付宝返回的 给app或者网页的支付凭证，  客户端通过此信息调起支付界面。")
    private String prePayId;

    @ApiModelProperty(value = "第三方流水号 微信支付内部订单号(transaction_id)，  支付宝内部交易号(trade_no)")
    private String bankPayTrxNo;

    @ApiModelProperty(value = "订单金额（分）")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "订单开始时间")
    private Date orderTime;

    @ApiModelProperty(value = "过期时间")
    private Date expireTime;

    @ApiModelProperty(value = "支付成时间")
    private Date payTime;

    @ApiModelProperty(value = "关闭时间")
    private Date closeTime;

    @ApiModelProperty(value = "状态 0-支付中 1-支付成功 2-已关闭")
    private Integer payStatus;

    @ApiModelProperty(value = "第三方支付回调返回信息")
    private String bankPayNotifyMsg;

    @ApiModelProperty(value = "商户系统编号：INSUR：保险系统")
    private String sourceSys;
}

